package com.ddw.meedeeuh.shared.movie.scrapers.imdb;

import com.ddw.meedeeuh.shared.io.SourceFile;
import com.ddw.meedeeuh.shared.movie.scrapers.SearchMovieResult;

class ImdbSearchMovieResult implements SearchMovieResult {

	private final SourceFile file;
	private final String imdbId;
	private final String name;
	private final int year;

	ImdbSearchMovieResult(SourceFile file, String imdbId, String name, int year) {
		this.file = file;
		this.imdbId = imdbId;
		this.name = name;
		this.year = year;
	}

	@Override
	public SourceFile getFile() {
		return this.file;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public int getYear() {
		return this.year;
	}

	public String getImdbId() {
		return this.imdbId;
	}

}